/* css reset */
* {
    box-sizing: border-box;
}

*:before, *:after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

ul, ol {
    list-style: none;
}

input, button {
    border: none;
}

img {
    max-width: 100%;
    max-height: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

/* style */
body {
    background: #E5E5E5;
    /*ßbackground: red; 虽然body区域是局部的，但浏览器会自能把body颜色拓展到整个页面*/
}

.globalHeader {
    margin: 20px; /*左右居中ß*/
}

@media (min-width: 500px) {
    .globalHeader {
        margin: 60px 0;
    }
}

.searchForm {
    display: flex;
    justify-content: space-between;
}

@media (min-width: 500px) {
    /*  媒体查询，500像素以下不管  */
    .searchForm {
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (min-width: 500px) {
    /*  媒体查询，500像素以上不管  */
}

.searchForm > input {
    width: 100%;
    margin-right: 10px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.searchForm > button {
    white-space: nowrap; /*  不换，input.width100%  */
    padding: 0 28px;
    border-radius: 4px;
    background: #0282B9;
    border: 1px solid #DDDDDD;
    color: #fff;
    font-size: 16px;
}

.globalMain {
    max-width: 900px;
    /* 一般有最大宽度时生效 */
    margin-left: auto;
    margin-right: auto;
}

.sitelist {
    margin: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

/*500是一个比较安全的经验数字*/
@media (min-width: 500px) {
    .sitelist {
        margin-left: 0;
        margin-right: -25px;
        justify-content: flex-start;
    }
}

.sitelist > li {
    margin-bottom: 10px;
}
@media (min-width: 500px) {
    .sitelist > li {
        margin-right: 25px;
    }
}
.sitelist .site {
    width: 160px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    background: white;
    padding: 20px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    position: relative;
    cursor: pointer; /*  手形  */
}

.sitelist .site > .logo {
    width: 66px;
    height: 66px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 66px;
    text-transform: uppercase;
}

.sitelist .site > .link {
    line-height: 150%;
    font-size: 0.875em;
    margin-top: 5px;
}

.sitelist .site > .remove {
    position: absolute;
    right: -10px;
    top: -18px;
    font-size: 50px;
    display: none;
    cursor: default; /*手形变默认*/
}

.sitelist .site:hover > .remove {
    /*鼠标悬停*/
    display: block;
}

.sitelist .addButton {
    width: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: white;
    border: 1px solid #ddd;
    /*#ddd*/
    border-radius: 4px;
    padding: 20px 0px;
}

.sitelist .addButton .icon {
    width: 56px;
    height: 56px;
}

.sitelist .addButton .text {
    font-size: 0.875em;
    margin-top: 5px;
    line-height: 150%;
}

.sitelist .addButton .icon-wrapper {
    width: 66px;
    height: 66px;
    display: flex;
    justify-content: center;
    align-items: center;
}